I wasn't able to figure out how to do something like:
declare var chrome.socket:any

so I've added a TODO (hopefully will follow up on this soon, so it won't be an issue for long).