Transcranial magnetic stimulation (TMS) is a noninvasive therapy that uses magnetic pulses to change brain activity.