Helmet lights, like many of the best lights for night riding, will come with either an internal battery or an external one that is carried or strapped either onto the bike or on the person and connected to the light with a long cable.
Generally speaking, external battery lights are brighter and have a longer run time, but advances in technology mean that lights with internal batteries are beginning to give them a run for their money.