Keep a bedtime routine when the deadline won’t move
Plan for the nights you’ll work late and give the unfinished parts of the job somewhere to wait.

Put tomorrow’s first move in writing
Before you shut the laptop, note the name of the file, where you stopped, and the next thing you’ll do. You might even leave the document at the right paragraph. That way reopening the project can be as simple as opening a familiar door. An unsent email draft can wait in the folder where you’ll expect to find it.
Keep the shortest useful version of the routine
Look at the week before it arrives and flag the evenings that are likely to run long. Move a few chores away from those nights. Leave time for sleep on the calendar and decide which parts of getting ready for bed are essential. The NIH puts adequate sleep opportunity first, even when a busy schedule makes it easy to give the time away.
Return to your schedule before adding new habits
When the deadline passes, go back to the timing that worked on ordinary weeks. You can evaluate the rest of your habits after a few normal days. Put a short reminder on the calendar for the next big week. Ideally it’s already there before you consider taking a second monitor to bed.