Pywhatkit how to close youtube after song ends?

is it possible to close the youtube tab after the song ends? I want to implement python code into raspberry so I can manually close the tab each time

Back to Top