Turn off leds on night vision camera?

The IR modules (presuming you’re talking about this type: https://shop.pimoroni.com/products/night-vision-camera-module-for-raspberry-pi?variant=12516582817875) have a small potentiometer which allows adjustment to the point the nearby LDR turns off the illuminator.