Active noise cancellation is considerably more sophisticated. It will involve microphones that actively sample the noise in an surroundings and afterwards develop an inverse wave that cancels out These sounds. Think of https://www.leo-brand.com/products/red-stereo-gaming-headset-for-ps4-pc-xbox-one-ps5-controller-noise-cancelling-over-ear-headphones-with-mic