The Taliban on Saturday ruled out cooperation with the U.S. to contain extremist groups in Afghanistan, staking out an uncompromising position on a key issue ahead of the first direct talks between the former foes since America withdrew from the country in August.