How do I better resist the urge to check my notifications after I’ve put my phone away for the night?

Ken S.
You can turn off your notifications manually. Also, if you are using an Apple product you can go into Settings and select Focus. From here you can customize your device so that it blocks notifications and messages during certain times.