Sleepr

This simple menu bar app brings back the option to set a timer at the end of which your Mac goes into sleep mode (removed from macOS Ventura and Sonoma).

Visit