Type hints for clarity/perf, especially needed for .getSession