To set the sleep timer on Windows 10, you'll need to find and open your computer's "Power & Sleep" menu.
You can keep the screen on when your MacBook or Windows laptop is closed by altering your laptop's power settings.