KABUL (AFP) - Afghanistan and Pakistan have vowed to work more closely to combat extremism, Hamid Karzais office said Wednesday after talks between the Afghan president and Pakistans Prime Minister Yousuf Raza Gilani. Karzais office said in a statement that the pair spoke by telephone on Tuesday evening and discussed areas where the two neighbours could cooperate more, including on economic ties. Both sides emphasised more cooperation and coordination between security institutions of the two countries in the war against terrorism, the statement said. Karzai also invited Gilani to come to Afghanistan on an official visit for further talks, which the Pakistani prime minister accepted, it added.