The cords you see in the Ad are to recharge the batteries already installed in the lights ! These lights are great, bright and an easy install with the magnets that have 3M sticky backs on one side. So easy to stick the magnets to your wall or under your cabinets, and when you need a recharge, ( 40 hours of light time ) you just pull the light off the magnet and plug in for a very quick recharge time !! I have a closet in my kitchen that I use as my pantry and it is dark in there. Now with these lights, I set the light on the moon setting which means when I open the door the light turns on automatically because of the sensor ! When I shut the door the light goes off automatically after 20 seconds as the sensor picks up on the no activity mode, so 40 hours of light time is A Lot !!! I plan to get more of the light to put under my cabinets !! I Love them !!