Let's add support for `if TYPECHECKING` blocks and only resolve those imports to packages for the `[type]` extra.