The primary component of NyQuil is Doxylamine Succinate, which is an antihistamine that causes drowsiness by obstructing histamine from binding to the brain receptors.

https://recoverypartnernetwork.com/drug/opioid/nyquil-addiction