Speaking from experience, its a pain in the butt to bake the lights open, strip the chrome paint, repaint, then reseal them properly. Its a whole lot of work to do for a stock headlight.
Before you start you're gonna need some prying tools, plastic paint, a bottle of meguiars plast-x, 5-6 clamps, a heat gun, and a roll of 1/4" butyl rubber sealant.
Start by baking the headlight open. 250 degrees for about 10 minutes should do the trick. Then remove the headlight lenses from the housings. Take your time and polish the inside of the headlight lenses while you have it off for that crystal clear brand new look. Then you are going to have to strip the chrome off, I typically use a brillo pad and some rubbing compound and a lot of elbow grease. Wipe it clean with some mineral spirits and then paint it.
When it comes time to reassemble you want to start by lining the groove with 1/4" butyl rubber, I typically use 3m window weld. Unlike most sealants (silicone, goop, etc) butyl rubber won't give off residue when exposed to heat or change colors when it is exposed to the weather. It is resealable, and provides superior waterproofing - thats why it is used by all oem headlight manufacturers. You're going to want to heat it up with a heat gun prior to trying to stick the two pieces together. Take your time doing this (15-20 mins) get it good and hot before you push the pieces together. Use clamps to ensure a tight fit.
Finish it off by polishing the outside to match the inside and enjoy your brand new headlight. Its gonna take take 2-3 days to do a pair depending on how many coats of paint you do, so you might as well take your time and do them the right way.
Or.... you could buy aftermarket lights and call it a day haha.