You can set a hibernation time for your computer in Windows 11, though you might need to enable the feature first.
Whether you're trying to eke out a few more years on an aging PC or have been dragging your feet on a Windows 11 upgrade, ...
To set the sleep timer on Windows 10, you'll need to find and open your computer's "Power & Sleep" menu.