Participants will then be randomized to (a) the brief cognitive behavioral therapy for insomnia (CBTi) in ICD patients group or (b) the waitlist control group. The treatment consists of 2 weeks of in-person therapy and 2 weeks of therapy conducted over the telephone. Participants assigned to waitlist control will be offered therapy at no cost at the end of the study. Throughout the 4 treatment weeks, participants in both groups will be asked to complete daily sleep diaries.