You can set a hibernation time for your computer in Windows 11, though you might need to enable the feature first.
On the “About” page, locate and select the tab labeled “Advanced system settings,” which is underneath your PC’s device ...