those API's from espressif are somewhat irrelevant to arduino ESP32 function as the function naming and useage is different and I've referenced my code according to ESP32 Arduino: Controlling a buzzer with PWM - techtutorialsx
But there is nothing about shutting the PWM off as the timer is still connected to the output and makes noise so not that helpful but thanks!