Using an Arduino (If Needed) to Charge 18650 Battery
Basically you just need a Li-Ion charging controller like the MCP73831. There are also lots of ready-made solutions available, e.g. https://www.adafruit.com/products/1304