Update JSDoc.

Refactor to match API in troopjs#3.0.0-pr.9