You can set a hibernation time for your computer in Windows 11, though you might need to enable the feature first.
Some questions that I can't find the answers to online, so seeking info from the good folks here at Ars: Does Windows 11 (Pro) hibernate by writing RAM to SSD in its default config, and if so on what ...