You can replenish your energy stores by eating high-energy foods. However, the Stardew Valley mod provides you with unlimited energy for free.