function checkType(node) {
  console.group(node.name?.escapedText);
  const predictedTypes = Object.keys(ts).reduce((acc, key) => {
    if (typeof ts[key] !== "function" && !key.startsWith("is")) {
      return acc;
    }
    try {
      if (ts[key](node) === true) {
        acc.push(key);
      }
    } catch (error) {
      return acc;
    }
    return acc;
  }, []);
  console.log(predictedTypes);
  console.groupEnd();
}
Check type of node (dev only)
@param {node} node
@return {void} Console log predicted types