Here’s a quote from Sony. “Noise-cancelling audio devices use a built-in microphone to analyse the ambient sound waves around you and generate the opposite sound waves to reduce surrounding sound. Noise-cancelling devices have a built-in microphone which produces the opposite reversed sound waves to neutralise surrounding noise.”
Wireless headsets have rechargeable batteries.