Participants who had 2 weeks or more of continuous abstinence at week 12 of open treatment were randomly assigned to receive cognitive behavioral therapy and double-blind varenicline ( 1 mg , 2 per day ) or placebo from weeks 12 to 52 .