A "nightcap" is a drink, usually alcohol, that you have before going to bed. It helps you relax and sleep better.