When I do the following (where RM_CODE is a valid code) I get the error in the issue title and deviceToken is undefined.
const { Remarkable } = require("remarkable-typescript");
const client = new Remarkable();
const deviceToken = await client.register({ code: RM_CODE });
console.log(deviceToken);