A bulb emits light.
So can a bulb-like thing or anything be made such that it absorbs all/most of the light when turned on?
For example, when room is dark we switch on bulb and it spreads light. Let a room already be bright with daylight, so we turn on the light absorbent bulb/machine and it makes the room dark.
Here, light refers to visible light. But if this kind of device could be made, it could be extended to other lights too.