This is what you are quoting

How does it work?
Flames emits light and heat, so it seems impossible to make black fire. However, you actually can make black fire by controlling the wavelengths of absorbed and emitted light.
The low-pressure sodium lamp has the same spectral signature as the sodium-tinted flame. When you add sodium (from salt) to the flame, the sodium atoms absorb the light from the lamp because it’s exactly the energy they need. What happens when you absorb all the light? You see black.
Now to your question
I am wondering if out there in the universe there is a similar condition whereby a star mimic the sodium lamp and a planet can have black lightning storm?
The problem is that no star has a narrow emission spectrum as a sodium light. As a consequence you won't see the black lightning because there would be other frequencies which would not be absorbed (same reason why a sodium flame doesn't appear black under sunlight).
For comparison, this is the emission spectrum of a low pressure sodium lamp

while this is the solar spectrum (note the scale of the x axis)
