This medication is known as an anticonvulsant or antiepileptic drug. klonopin is also used to treat panic attacks. Clonazepam works by calming your brain and nerves.