I have an older set of lights that takes batteries. My most recent set is USB rechargeable.
The USB headlight I have is only rated at 2 hours on high. One time I didn't keep up with charging that headlight and the little red warning light came on and about 5 or 10 minutes later, that headlight was dead. All I had was a pair of front reflectors for my return trip to the house.