Your mission if you choose to except it (and I'd better!) is to deny a pre-sleep fap - I'm assuming there's a word for that
Pre-sleep is my weakest time. Welcome to NoFap mate, I wish you all the best in achieving your goals.
If a nightcap is an alcoholic beverage consumed just before bed, then I believe what you're talking about here is a fapcap. SK