You can set a hibernation time for your computer in Windows 11, though you might need to enable the feature first.
I'm sure you've heard that shutting down your computer too frequently could negatively affect its software and limit its lifespan. Or that leaving your computer on all the time also hurts its battery ...