frontend: more strict import of non-ts modules