Both Iran and Pakistan say a deal has never been closer - echoing US President Donald Trump's statement on Thursday.