Not really sure which fictional series have done this sort of feat, but in the case that real life humanity ever decides to make a bomb that explodes all the stars in our Milky Way Galaxy via inverse square law, this is what the yield would be for the energy that bomb would release.
Pulsars are a type of neutron star located in the Milky Way Galaxy, which are at a minimum 12 kilometers in radius and have a mass of at least 1.1 solar masses (1.989 x 10^30 kilograms is 1 solar mass; 1.1 solar masses is 2.1879E+30 kg).
https://en.wikipedia.org/wiki/Neutron_star
"A neutron star has a mass of at least 1.1 and perhaps up to 3 solar masses."
"As a result, the researchers were able to determine the radius of a typical neutron star within a range of only 1.5 km: it lies between 12 and 13.5 kilometres, a result that can be further refined by future gravitational wave detections."
So now we have our range for the neutrons stars specifications.
We will be using the gravitational binding energy formula for neutron stars here:
"This formula is U = (3*G*M^2)/(r(5-n)), in which U is GBE in joules, G is the gravitational constant of 6.67408x10^-11, M is mass in kilograms, r is radius in meters, and n is the polytropic value attributed to the type of star. While this blog is not perfectly accurate, it is widely applicable, and is still within the acceptable margin for error."
https://en.wikipedia.org/wiki/Polytrope
"Neutron stars are well modeled by polytropes with index between n = 0.5 and n = 1."
So we have our range here for the polytrope index between .5 and 1, so let's plug .5 into the formula to obtain the GBE in joules for our neutron star as a low end value.
U = (3*(6.67408E-11)*(2.1879E+30)^2)/(12000(5-.5)) = 17748997962696000000000000000000000000000000000 joules
Now we obtain the surface area of these two neutron stars.
Surface area of a circle = (pi)*(r^2)
Cross sectional surface area of these neutron stars (surface area of a circle with a radius of 12000 meters) = (pi)*(12000^2) = 452389342.1169302263386206 m^2
We have detected the locations of pulsars within our galaxy.
https://en.wikipedia.org/wiki/PALFA_Survey
https://en.wikipedia.org/wiki/PALFA_Survey#/media/File:Pulsars_DMscale_PALFA.jpg
"Galactic location of the new P-ALFA pulsar survey discoveries. The center of the Galaxy is indicated by the center of the coordinates, the position of the Solar System is indicated by the red dot on the left. The PALFA search areas are indicated in light blue. The dots indicate pulsars, this time colored according to their DM. The new PALFA discoveries are indicated by the larger dots."
Red line is 376 pixels, represented by 5 kpc (kiloparsecs)
Green line is 2212.577 pixels, representing the longest distance between two pulsars I could find on the map that would be affected by this attack.
((2212.577/376) * 5) = 29.4225664893617021 kpc apart from each other for the location of these two pulsars.
The distance the attack's effects would have to cover to affect both pulsars would be at a minimum half the distance that was found here.
29.4225664893617021 kpc / 2 = 14.71128324468085105 kpc
14.71128324468085105 kpc = 453942771753670200000 meters
Now we can compare the surface area affected by the energy to blow up one of the neutron stars with the total surface area affected at that distance to get the total energy that was released by this attack.
Surface area of a sphere = (4)*(pi)*(r^2)
Surface area affected by attack (surface area of a sphere with a radius of 453942771753670200000 meters) = (4)*(pi)*(453942771753670200000^2) = 2589477097276511052807671039071768575896785.0470098099552872 m^2
Total energy released = ((2589477097276511052807671039071768575896785.0470098099552872 / 452389342.1169302263386206) * 17748997962696000000000000000000000000000000000) = 1.0159528E+80 joules