Both! Cool in the pan for 10 minutes and then remove from the pan to cool completely on a wire baking rack.