Hi, From the user guide (
http://www.niterider.com/wp-content/...User-Guide.pdf) "Leaving the headlamp and USB charging cable connected indefinitely will not harm the battery."
As for the best way to charge it, there's lots of info here-
How to Prolong Lithium-based Batteries - Battery University which says that small discharges and then charging will prolong the life.