var copy = require('@kingjs/xxx');
result:
declare function xxx( ): any
With npm installed, run
$ npm install @kingjs/xxx
MIT