Dialectical behavior therapy (DBT), a form of CBT, helps to treat people with recurrent suicidal thoughts and actions. It is also used to treat people with borderline personality disorder.