Kill process using specific port

To kill a process that is using a specific port, you can run the following:

Windows (PowerShell):

Stop-Process -Id (Get-NetTCPConnection -LocalPort 8000).OwningProcess -Force

Mac (uses npm package):

npx kill-port 8000