I've understood it has solar panels. But what would be the reason they didn't put a nuclear battery on board? That would work for years.
If the direct output power of the nuclear battery was too low, it could still be used to charge the rechargeable battery until it can make the lander do work again for a few hours/days.