What is the meaning of the word "nightcap"?

Definitions: