diff --git a/dev/lib/html.js b/dev/lib/html.js
index be57721..fd525c3 100644
--- a/dev/lib/html.js
+++ b/dev/lib/html.js
@@ -14,8 +14,6 @@
import katex from 'katex'
-/** @type {import('katex')['default']['renderToString']} */
-// @ts-expect-error: types are incorrect.
const renderToString = katex.renderToString
/**
diff --git a/test/index.js b/test/index.js
index 4f38552..9a5cc7f 100644
--- a/test/index.js
+++ b/test/index.js
@@ -4,8 +4,6 @@ import katex from 'katex'
import {micromark} from 'micromark'
import {math, mathHtml} from 'micromark-extension-math'
-/** @type {import('katex')['default']['renderToString']} */
-// @ts-expect-error: types are incorrect.
const renderToString = katex.renderToString
test('math', async function (t) {