Hegseth told reporters at a Pentagon briefing that while the United States’ largest war in two decades was “on track,” it would end only when Trump wanted it to end and that he could not set a date.