src/vs/workbench/contrib/terminal/browser/terminalTypeAheadAddon.ts/isTenativeCharacterPrediction
export const isTenativeCharacterPrediction = (p: unknown): p is (TentativeBoundary & { inner: CharacterPrediction }) =>
	p instanceof TentativeBoundary && p.inner instanceof CharacterPrediction;