Warning cleanup: remove stale imports, add missing type signatures