single-user-defence - TS Solution