fix typeof imports