Or LITERALLY a black film over the headlights. Because a black film over the headlights is a BAD idea. Your nighttime light output will SUCK! and its illegal.
But if you ment blacked out like the 1st photo then you can DIY. Just open the headlight housing and you will see a chrome trim piece, unscrew it. Then paint it black. Done.