A simple implementation of AnkiConnect client, with TypeScript typing (using // @ts-check in an IME.)