Rewrite of getAwaitedType/checkAwaitableReturnType to use lib.d.ts