To install k6 on MacOS
brew install k6
To launch the script
k6 run index.ts
TypeScript Stress Test with K6