These types are of course false, since most discord.js projects will run in node and not in the browser. This fetch global internally uses undici, which is what that comment is likely referencing, ...
/home/kodenamekrak/node/discord/krakbot/node_modules/discord.js/src/client/actions/InteractionCreate.js:50 if (channel && !channel.isTextBased()) return; ^ TypeError ...