The [typescript setup guide](https://heroiclabs.com/docs/nakama/server-framework/typescript-setup/) tells the user to add `"typeRoots": ["./node_modules"]` to the `tsconfig.json`. This seems a little dangerous to me and from my PoV this could also be solved by using [Type-Only imports from Typescript 3.8](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html#type-only-imports-and-export). I went ahead and changed `declare namespace nkruntime` (see https://github.com/heroiclabs/nakama-common/blob/master/index.d.ts#L15) to `export namespace nkruntime` and then a corresponding `import { nkruntime } from "nakama-runtime";` in my typescript file. For me this works fine and nicely streamlines the development to be less "unusual".