Taliban and American officials holding talks in Qatar on ways to end the war in Afghanistan have held “extensive” discussions on how foreign troops could be withdrawn and on how to guarantee the country would not be used again by outside forces to attack other countries, the Taliban said in a statement on Thursday.