TLDR: What is an alternative to WorkerGlobalScope.close() which is not deprecated
WorkerGlobalScope.close()
I want to close/stop/terminate a Javascript web worker from the inside, aft