Apparatus and methods for treating tissue with electromagnetic radiation. A handpiece includes a housing and a baffle that divides an interior space of the housing into first and second channels. The housing further includes a first opening and a second opening coupled in fluid communication with the first opening by the first channel. The apparatus further includes a heat-generating element, such as a source of electromagnetic radiation, disposed at least partially in the first channel and an air-moving device coupled with the first channel. The air-moving device is configured to generate a forced flow of cooling air entering at the first opening and exhausted at the second opening. The cooling air receives heat transferred from the heat-generating element, which cools the heat-generating element, and the heated cooling air is exhausted from the second opening in a direction away from the tissue that is being treated with the electromagnetic radiation.