It would be helpful if there were an OOTB geoprocessing tool for shrinking lines at each end. By a measure or a percentage.

It would also be good if the tool could stretch out lines too -- using the angle of the last segment at each end. Or make that separate GP tool.
Thanks.
Related: Batch shrink lines at each end