navigate to ~/Library/Application\ Support/Screeps/scripts/{ server_location }
git clone (URL to your fork of this repo)
rename the screeps-starter folder to "default" (remove the old default folder)
npm install
npm start
Open up src/main.ts and get crackin'
variables defined outside the loop
function in main.ts will be cached and not re-declared every game tick