declare global { type ToolFunc = (...args: T) => Promise; interface ITool { name: string; description: string; run: ToolFunc; help?: () => Promise | void; done?: () => Promise | void; } }