We discuss heat transport through a Josephson tunnel junction under various bias conditions. We first derive the formula for the cooling power of the junction valid for arbitrary time dependence of the Josephson phase. Combining it with the classical equation of motion for the phase, we find the time-averaged cooling power as a function of bias current or bias voltage. We also find the noise of the heat current and, more generally, the full counting statistics of the heat transport through the junction. We separately consider the metastable superconducting branch of the current-voltage characteristics allowing quantum fluctuations of the phase in this case. This regime is experimentally attractive since the junction has low power dissipatio...