Add logging to `importHelpers`.

Also fix type hints, `instanceof` is not required or valid.