Is it possible to add Time spent and cost in closing notification

Is it possible to add Time spent and cost in closing notification

I would like to know if it is possible to add the amount of time spent and the amount it cost in the template "When ticket is closed"?