Stochastic thermodynamics of resetting