A vagus nerve stimulator (VNS) is a device that can help prevent seizures. It can also treat depression, obesity, as well as other conditions. It has 2 parts: a pulse generator and leads. The pulse generator sits in your chest under your skin. The leads run from the generator to a vagus nerve in your neck. The VNS is put in your body during a surgery.