docs/api: Use JSDoc syntax `Array.<string>`

Signed-off-by: Timothy Gu <timothygu99@gmail.com>